package com.controller;

import com.domain.DoorCar;
import com.server.CarServer;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(value = "/park/interface")
public class Test {

    @Resource
    public CarServer carServer;
    @GetMapping(value = "/test")
    public int openDoor() {
        DoorCar car=new DoorCar();
        car.setDepartment("3909499469");
        DoorCar car1= carServer.findByDepartment("3909499469");
        System.out.println("aaa"+car1);
    return 1;
    }
}
